<?php
/**
 * 仿简书主题
 * 
 * @package JianShu
 * @author 绛木子
 * @version 1.0.0
 * @link http://lixianhua.com
 */

if (!defined('__TYPECHO_ROOT_DIR__')) exit;
 $this->need('header.php');
?>
<div class="main-container">
<?php while($this->next()): ?>
    <article class="post" itemscope itemtype="http://schema.org/BlogPosting">
		<h2 class="post-title" itemprop="name headline"><a itemtype="url" href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h2>
        <ul class="post-meta clearfix">
		    <li><?php _e('<i class="fa fa-book"></i> '); ?><?php $this->category(','); ?></li>
		    <li><?php _e('<i class="fa fa-clock-o"></i> '); ?><time datetime="<?php $this->date('c'); ?>" itemprop="datePublished"><?php echo formatTime($this->created); ?></time></li>
			<li><?php _e('<i class="fa fa-eye"></i> 阅读 '); ?><?php $this->viewsNum(); ?></li>
			<li itemprop="interactionCount"><a itemprop="discussionUrl" href="<?php $this->permalink() ?>#comments"><?php $this->commentsNum('<i class="fa fa-comments-o"> 评论 %d</i>'); ?></a></li>
		</ul>
    </article>
<?php endwhile; ?>
    <div class="page-navigator">
        <?php $this->pageLink('下一页','next'); ?>
        <?php $this->pageLink('上一页'); ?>
    </div>
</div>
<?php $this->need('footer.php'); ?>
